package cn.itcast.ssm.po;

import java.io.Serializable;

public class Parameter implements Serializable {
    private Integer parameterId;

    private Double maxT;

    private Double minT;

    private Double maxH;

    private Double minH;

    private Double co2;

    private Double wind;

    private String irrigationType;

    private Integer cropId;

    private static final long serialVersionUID = 1L;

    public Integer getParameterId() {
        return parameterId;
    }

    public void setParameterId(Integer parameterId) {
        this.parameterId = parameterId;
    }

    public Double getMaxT() {
        return maxT;
    }

    public void setMaxT(Double maxT) {
        this.maxT = maxT;
    }

    public Double getMinT() {
        return minT;
    }

    public void setMinT(Double minT) {
        this.minT = minT;
    }

    public Double getMaxH() {
        return maxH;
    }

    public void setMaxH(Double maxH) {
        this.maxH = maxH;
    }

    public Double getMinH() {
        return minH;
    }

    public void setMinH(Double minH) {
        this.minH = minH;
    }

    public Double getCo2() {
        return co2;
    }

    public void setCo2(Double co2) {
        this.co2 = co2;
    }

    public Double getWind() {
        return wind;
    }

    public void setWind(Double wind) {
        this.wind = wind;
    }

    public String getIrrigationType() {
        return irrigationType;
    }

    public void setIrrigationType(String irrigationType) {
        this.irrigationType = irrigationType == null ? null : irrigationType.trim();
    }

    public Integer getCropId() {
        return cropId;
    }

    public void setCropId(Integer cropId) {
        this.cropId = cropId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", parameterId=").append(parameterId);
        sb.append(", maxT=").append(maxT);
        sb.append(", minT=").append(minT);
        sb.append(", maxH=").append(maxH);
        sb.append(", minH=").append(minH);
        sb.append(", co2=").append(co2);
        sb.append(", wind=").append(wind);
        sb.append(", irrigationType=").append(irrigationType);
        sb.append(", cropId=").append(cropId);
        sb.append("]");
        return sb.toString();
    }
}